package com.prs.crm.domain.cqunicom;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2011-3-3 上午09:59:41 简单说明 公告接收人
 */
@Entity
@Table(name = "cq_NewsSendPerson")
public class NewsSendPerson extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * 收件人
	 */
	@ManyToOne
	private Person persons;
	/**
	 * 发件人
	 */
	@ManyToOne
	private Person personn;

	/**
	 * 发送标题
	 */
	private String sendTitle;
	/**
	 * 是否读取
	 */
	private String readMark;

	@Lob
	private String sendContent;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Person getPersons() {
		return persons;
	}

	public void setPersons(Person persons) {
		this.persons = persons;
	}

	public String getSendTitle() {
		return sendTitle;
	}

	public void setSendTitle(String sendTitle) {
		this.sendTitle = sendTitle;
	}

	public String getSendContent() {
		return sendContent;
	}

	public void setSendContent(String sendContent) {
		this.sendContent = sendContent;
	}

	public Person getPersonn() {
		return personn;
	}

	public void setPersonn(Person personn) {
		this.personn = personn;
	}

	public String getReadMark() {
		return readMark;
	}

	public void setReadMark(String readMark) {
		this.readMark = readMark;
	}

	
}
